import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import ConfigElementType 1.0
import "qrc:/qmlComponents/ConfigManager"

Item {
    RowLayout{
        spacing: 20
        ColumnLayout{
            Layout.alignment: Qt.AlignTop
            ObjectEditor{
                sectionName: qsTr("SafetyPosNearLensTray")
                configModel: bhSafetyPosNearLT
                Component.onCompleted: {
                    init()
                }
            }
            Button{
                text: qsTr("Read")
                onClicked: {
                    bonderHead.readSafetyPosNearLt()
                }
            }
        }
        ColumnLayout{
            Layout.alignment: Qt.AlignTop
            ObjectEditor{
                sectionName: qsTr("SafetyPosNearSensorTray")
                configModel: bhSafetyPosNearST
                Component.onCompleted: {
                    init()
                }
            }
            Button{
                text: qsTr("Read")
                onClicked: {
                    bonderHead.readSafetyPosNearSt()
                }
            }
        }
        ColumnLayout{
            Layout.alignment: Qt.AlignTop
            ConfigRow{
                configModel: bhConfig
                configName: "ltSafetyHeightAfterPickLens"
                Component.onCompleted: {
                    autoInit()
                }
            }
            Button{
                text: qsTr("Read")
                onClicked: {
                    bonderHead.readLtSafetyHeightAfterPickLens()
                }
            }
            ConfigRow{
                configModel: bhConfig
                configName: "stSafetyHeightAfterPlaceLens"
                Component.onCompleted: {
                    autoInit()
                }
            }
            Button{
                text: qsTr("Read")
                onClicked: {
                    bonderHead.readStSafetyHeightAfterPlaceLens()
                }
            }
        }
    }
}
